﻿#pragma once
#include "Scene.h"
#include "Game.h"
#include "iostream"
class BeginAnimationScene:public Scene
{
public:
	BeginAnimationScene();
	~BeginAnimationScene();
	void Init() override;
	void HandleEvent(SDL_Event * event) override;
	UpDateResult Update(float deltaTime) override;
	void Render() override;

private:
	Mix_Music *music_;
	SDL_Texture *currentTexture_;
	std::string path_;
	SDL_Rect senceStartRect_; // 图片显示区域
	SDL_Rect senceEndRect_; // 图片显示区域
	SDL_Rect senceCrrentRect_; // 图片显示区域
	SDL_Rect pictureRect_; // 图片显示大小
	int animationTime_;
	int soundTime_;
	int fps_;
	int currentFrame_;
	int allTimes_;
	int currentX_;
	int currentY_;
};